| Home | Trees | Index | Help |
|
|---|
| Package lemon :: Package external :: Package Cheetah :: Module Parser :: Class _LowLevelSemanticsParser |
|
_SettingsCollector--+ |SettingsManager--+ |SourceReader--+ |PythonLexer--+ |CheetahLexer--+ | _LowLevelSemanticsParser
_HighLevelSemanticsParser| Method Summary | |
|---|---|
A hook that allows for complex setting initialization sequences that involve references to 'self' or other settings. | |
configureParser(self)
| |
getAssignmentOperator(self)
| |
getCacheToken(self)
| |
Get a method/function call argument string. | |
discards the cache info... | |
getCheetahVarBody(self,
plain)
| |
nameChunks = list of Cheetah $var subcomponents represented as tuples [ (namemapperPart,autoCall,restOfName), ] where: namemapperPart = the dottedName base autocall = where NameMapper should use autocalling on namemapperPart restOfName = any arglist, index, or slice If restOfName contains a call arglist (e.g. | |
just the start token, not the enclosure or cache token... | |
getCommentStartToken(self)
| |
Get an argument list. | |
getDirectiveEndToken(self)
| |
getDirectiveStartToken(self)
| |
getDottedName(self)
| |
Get a Cheetah expression that includes $CheetahVars and break at directive end tokens. | |
getIdentifier(self)
| |
getMultiLineCommentEndToken(self)
| |
getMultiLineCommentStartToken(self)
| |
getNonWhiteSpace(self,
WSchars)
| |
getOperator(self)
| |
getPSPEndToken(self)
| |
getPSPStartToken(self)
| |
getTargetVarsList(self)
| |
getWhiteSpace(self,
WSchars)
| |
isDirective(self,
directiveKeyChars)
| |
isLineClearToStartToken(self,
pos)
| |
Setup the regexs for Cheetah $var parsing. | |
Construct the regex bits that are used in comment parsing. | |
Construct the regexs that are used in directive parsing. | |
Setup the regexs for PSP parsing. | |
matchAssignmentOperator(self)
| |
includes the enclosure and cache token... | |
matchCommentStartToken(self)
| |
matchDirectiveEndToken(self)
| |
matchDirectiveStartToken(self)
| |
matchIdentifier(self,
identRE)
| |
matchMultiLineCommentEndToken(self)
| |
matchMultiLineCommentStartToken(self)
| |
matchNonStrConst(self)
| |
matchNonWhiteSpace(self,
WSchars)
| |
matchOperator(self)
| |
matchPSPEndToken(self)
| |
matchPSPStartToken(self)
| |
matchWhiteSpace(self,
WSchars)
| |
readToThisEndDirective(self,
directiveKey)
| |
| Inherited from CheetahLexer | |
| |
| |
| Inherited from PythonLexer | |
| |
| |
| |
| Inherited from SettingsManager | |
Returns a shallow copy of the settings dictionary... | |
Returns a deep copy of the settings dictionary... | |
Return a string with the settings in .ini file format. | |
True/False... | |
Set a setting in self._settings. | |
Get a setting from self._settings, with or without a default value. | |
Return a reference to the settings dictionary... | |
Update the settings with a selective merge or a complete overwrite. | |
Update the settings from a text file using the syntax accepted by Python's standard ConfigParser module (like Windows .ini files). | |
See the docstring for .updateSettingsFromConfigFile() The caller of this method is responsible for closing the inFile file object. | |
See the docstring for .updateSettingsFromConfigFile()... | |
Update the settings from variables in a Python source file. | |
Update the settings from a code in a Python src string. | |
Write all the settings that can be represented as strings to an .ini style config file. | |
Write all the settings that can be represented as strings to an .ini style config string. | |
| |
| Inherited from _SettingsCollector | |
Extract all the attributes of a SettingsContainer subclass. | |
Check if 'thing' is a Python module or a subclass of SettingsContainer. | |
A hook for any neccessary path manipulations. | |
| |
Return the settings from a config file that uses the syntax accepted by Python's standard ConfigParser module (like Windows .ini files). | |
Returns all settings from a SettingsContainer or Python module. | |
Returns all settings from a SettingsContainer or Python module. | |
Return new settings dict from variables in a Python source file. | |
Return a dictionary of the settings in a Python src string. | |
| Inherited from SourceReader | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Class Variable Summary | |
|---|---|
| Inherited from _SettingsCollector | |
lock |
_sysPathLock = <thread.lock object at 0x008AD160>
|
| Method Details |
|---|
_initializeSettings(self)
A hook that allows for complex setting initialization sequences that
involve references to 'self' or other settings. For example:
self._settings['myCalcVal'] = self._settings['someVal'] * 15
This method should be called by the class' __init__() method when needed.
The dummy implementation should be reimplemented by subclasses.
|
getCallArgString(self, enclosures=[])Get a method/function call argument string. This method understands *arg, and **kw |
getCheetahVar(self, plain=False)discards the cache info |
getCheetahVarNameChunks(self)
nameChunks = list of Cheetah $var subcomponents represented as tuples
[ (namemapperPart,autoCall,restOfName),
]
where:
namemapperPart = the dottedName base
autocall = where NameMapper should use autocalling on namemapperPart
restOfName = any arglist, index, or slice
If restOfName contains a call arglist (e.g. '(1234)') then autocall is
False, otherwise it defaults to True.
EXAMPLE
------------------------------------------------------------------------
if the raw CheetahVar is
$a.b.c[1].d().x.y.z
nameChunks is the list
[ ('a.b.c',1,'[1]'),
('d',0,'()'),
('x.y.z',1,''),
]
|
getCheetahVarStartToken(self)just the start token, not the enclosure or cache token |
getDefArgList(self, exitPos=None, useNameMapper=False)
Get an argument list. Can be used for method/function definition
argument lists or for #directive argument lists. Returns a list of
tuples in the form (argName, defVal=None) with one tuple for each arg
name.
These defVals are always strings, so (argName, defVal=None) is safe even
with a case like (arg1, arg2=None, arg3=1234*2), which would be returned as
[('arg1', None),
('arg2', 'None'),
('arg3', '1234*2'),
]
This method understands *arg, and **kw
|
getExpression(self, enclosed=False, enclosures=None)Get a Cheetah expression that includes $CheetahVars and break at directive end tokens. |
makeCheetahVarREs(self)Setup the regexs for Cheetah $var parsing. |
makeCommentREs(self)Construct the regex bits that are used in comment parsing. |
makeDirectiveREs(self)Construct the regexs that are used in directive parsing. |
makePspREs(self)Setup the regexs for PSP parsing. |
matchCheetahVarStart(self)includes the enclosure and cache token |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Nov 10 15:08:22 2003 | http://epydoc.sf.net |